package cxf.client;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cxf.server.HelloService;

public final class Client {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext(
				"beans.xml");

		HelloService client = (HelloService) context.getBean("client");
		// User user = new User();

		String reply = client.sayHello("Kerry");
		System.out.println("Server said: " + reply);
	}

}
